// 身份管理
import request from '@/router/axios'

//展示表格
export function timeFrame(query) {
    return request({
        url: '/campus/timeframe/page',
        method: 'get',
        params: query
    })
}

//添加
export function AddtimeFrame(obj) {
    return request({
        url: '/campus/timeframe',
        method: 'post',
        data: obj
    })
}

//修改
export function EdittimeFrame(obj) {
    return request({
        url: '/campus/timeframe',
        method: 'put',
        data: obj
    })
}

//删除
export function DeltimeFrame(id) {
    return request({
        url: '/campus/timeframe/' + id,
        method: 'delete'
    })
}

// 编辑前分页
export function beforeEditObj(id) {
    return request({
        url: '/campus/timeframe/' + id,
        method: 'get',
        params: id
    })
}

// 时间段有无绑定
export function getFrameCount(id) {
    return request({
        url: '/campus/timeframe/getFrameCount/' + id,
        method: 'get',
        params: id
    })
}



